package routers

import (
	"base-gin/controller"
	"github.com/gin-gonic/gin"
	"net/http"
	"time"
)

func RegistRoute(app *gin.Engine) {
	app.GET("/", func(context *gin.Context) {
		time.Sleep(5 * time.Second)
		context.JSON(http.StatusOK, gin.H{
			"msg": "test",
		})
	})

	app.GET("/test", controller.TestHandler)
}
